home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Skunkware 5
/
Skunkware 5.iso
/
src
/
X11
/
wais
/
ir
/
sockets.h
< prev
next >
Wrap
C/C++ Source or Header
|
1995-05-09
|
1KB
|
50 lines
/* WIDE AREA INFORMATION SERVER SOFTWARE:
No guarantees or restrictions. See the readme file for the full standard
disclaimer.
5.29.90 Harry Morris, morris@think.com
*/
#ifndef sockets_h
#define sockets_h
#include "cdialect.h"
#include "cutil.h"
#ifndef THINK_C
#if !defined(M_XENIX) || defined(M_UNIX)
#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <netdb.h>
#include <arpa/inet.h>
#endif /* M_XENIX */
#endif /* THINK_C */
/*---------------------------------------------------------------------------*/
#ifdef __cplusplus
/* declare these as C style functions */
extern "C"
{
#endif /* def __cplusplus */
void open_server _AP((long port,long* socket,long size));
void accept_client_connection _AP((long socket,FILE** file));
void close_client_connection _AP((FILE* file));
void close_server _AP((long socket));
FILE *connect_to_server _AP((char* host_name,long port));
void close_connection_to_server _AP((FILE* file));
#ifdef __cplusplus
}
#endif /* def __cplusplus */
/*---------------------------------------------------------------------------*/
#endif